/*
* acooly.cn Inc.
* Copyright (c) 2017 All Rights Reserved.
* create by ouwen
* date:2017-09-27
*/
package com.yiji.fintech.musfinance.web;

import com.acooly.core.common.web.AbstractJQueryEntityController;
import com.yiji.fintech.musfinance.base.enums.ElementTypeEnum;
import com.yiji.fintech.musfinance.entity.SignInfo;
import com.yiji.fintech.musfinance.service.SignInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * center_sign_info 管理控制器
 * 
 * @author ouwen
 * Date: 2017-09-27 15:28:51
 */
@Controller
@RequestMapping(value = "/manage/signinfo/signInfo")
public class SignInfoManagerController extends AbstractJQueryEntityController<SignInfo, SignInfoService> {
	

	{
		allowMapping = "*";
	}

	@SuppressWarnings("unused")
	@Autowired
	private SignInfoService signInfoService;
	@Override
	public String edit(HttpServletRequest request, HttpServletResponse response, Model model) {
		String signInfoId = request.getParameter("signInfoId");
		model.addAttribute("signInfoId",signInfoId);
		return super.edit(request, response, model);
	}
	@Override
	public String create(HttpServletRequest request, HttpServletResponse response, Model model) {
		String signInfoId = request.getParameter("signInfoId");
		model.addAttribute("signInfoId",signInfoId);
		return super.create(request, response, model);
	}
	@Override
	protected void referenceData(HttpServletRequest request, Map<String, Object> model) {
		model.put("allElementTypes", ElementTypeEnum.mapping());
	}

}
